<?php

namespace app\api\model\appointment;

use app\common\model\BaseModel;


/**
 * 预约类型模型
 * Class GradeLog
 * @package app\store\model\user
 */
class Type extends BaseModel
{
    protected $name = 'appointment_type';

    /**
     * 预约类型
     * @return false|\PDOStatement|string|\think\Collection
     */
    public function getList()
    {
        $where = [
            'status' => 1,
            'is_delete' => 0,
        ];
        if (isset($wxapp_id) && !empty($wxapp_id)) {
            $where['wxapp_id'] = self::$wxapp_id;
        }
        // 获取列表数据
        return $this->where($where)
            ->field('type_id,name')->select();
    }

}